import { Base } from "@/js/api/base";
import axios from "axios";
export class Task extends Base {
    // constructor(port) {
    //     super(port);
    //     this.$axios = axios.create({
    //         baseURL: 'http://127.0.0.1:30003' + this.port,
    //         timeout: 30000,// 超时 毫秒
    //     })
    // }
    /**
     * 枚举列表
     * @param params
     * @param callBack
     */
    taskCreate(params, callBack) {
        return this.post("/task/batch_task/create", params, callBack)
    }
    taskRecordAdd(params, callBack) {
        return this.post("/task/batch_task/record_add", params, callBack)
    }
    taskRecordAddFile(params, data, callBack) {
        return this.filePost(`/task/batch_task/record_add_file`, params, data, callBack)
    }
    taskChangeStatus(params, callBack) {
        return this.post("/task/batch_task/change_status", params, callBack)
    }
    taskDetail(params, callBack) {
        return this.get("/task/batch_task/detail", params, callBack)
    }
    taskList(params, callBack) {
        return this.get("/task/batch_task/list", params, callBack)
    }
    taskRecordList(params, callBack) {
        return this.get("/task/batch_task/record_list", params, callBack)
    }
}